diff -Nuar vsftpd-3.0.3.orig/sysstr.c vsftpd-3.0.3/sysstr.c
--- vsftpd-3.0.3.orig/sysstr.c	2011-12-14 12:26:39.000000000 +0200
+++ vsftpd-3.0.3/sysstr.c	2021-12-09 12:28:49.969965834 +0200
@@ -74,7 +74,8 @@
 int
 str_open(const struct mystr* p_str, const enum EVSFSysStrOpenMode mode)
 {
-  enum EVSFSysUtilOpenMode open_mode = kVSFSysStrOpenUnknown;
+/*  enum EVSFSysUtilOpenMode open_mode = kVSFSysStrOpenUnknown;*/
+  int open_mode = kVSFSysStrOpenUnknown;
   switch (mode)
   {
     case kVSFSysStrOpenReadOnly:
diff -Nuar vsftpd-3.0.3.orig/vsf_findlibs.sh vsftpd-3.0.3/vsf_findlibs.sh
--- vsftpd-3.0.3.orig/vsf_findlibs.sh	2012-03-28 05:17:41.000000000 +0300
+++ vsftpd-3.0.3/vsf_findlibs.sh	2021-12-09 12:32:27.509965704 +0200
@@ -36,7 +36,7 @@
 locate_library /lib/libsocket.so && echo "-lsocket";
 
 # Look for libnsl. Solaris needs this.
-locate_library /lib/libnsl.so && echo "-lnsl";
+#locate_library /lib/libnsl.so && echo "-lnsl";
 
 # Look for libresolv. Solaris needs this.
 locate_library /lib/libresolv.so && echo "-lresolv";
